package com.study.web.controller;

import com.study.service.SimpleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : wilbur.yuan
 * @date : 2019-02-22
 */
@RestController
@RequestMapping("/")
public class HelloController {

    @Autowired
    private SimpleService simpleService;

    @GetMapping
    public String get() {
        return simpleService.getServiceName();
    }
}
